
#include "tcp_service.hpp"
#include <memory>

int main(int argc, char* args[])
{
    if (argc != 2)
    {
        [args]{printf("%s 需要port\n", args[0]);}();
    }
    auto pth_pool = ThreadPool<Task_add*>::Get_Instance();
    pth_pool->Run();
    std::unique_ptr<Tcp_service> service (new Tcp_service(atoi(args[1]), pth_pool));
    service->service_init();
    service->start();

    return 0;
}

